<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="common/meta" /}

        <style type="text/css">
            body {
                color:#eee;
                background:url('{$background}');
                background-size:cover;
            }
            a {
                color:#eee;
            }
            a:hover {
                color:#1eeec4;
            }
            .login-screen {
                max-width:400px;
                padding:0;
                margin:100px auto 0;
            }
            .login-screen .well {
                border-radius: 3px;
                -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                background: rgba(255,255,255, 0.2);
            }
            .login-screen .copyright {
                text-align: center;
            }
            @media(max-width:767px) {
                .login-screen {
                    padding:0 20px;
                }
            }
            .profile-img-card {
                width: 100px;
                height: 100px;
                margin: 10px auto;
                display: block;
                -moz-border-radius: 50%;
                -webkit-border-radius: 50%;
                border-radius: 50%;
            }
            .profile-name-card {
                text-align: center;
            }

            #login-form {
                margin-top:20px;
            }
            #login-form .input-group {
                margin-bottom:15px;
            }

            /* Remember me */
            .remember-me {
                position: relative;
                padding-left: 10px;
                height: 40px;
                line-height: 30px;
                font-size: 13px;

            }
            .remember-me input[type="checkbox"] {
                visibility: hidden;
            }
            .remember-me label {
                position: absolute;
                top: 5px;
                left: 0;
                width: 18px;
                height: 18px;
                background-color: #fff;
                border: 1px solid #ccc;
                border-radius: 3px;
                cursor: pointer;
            }
            .remember-me label:after {
                content: '';
                opacity: 0;

                position: absolute;
                top: 0;
                left: 0;
                bottom: 4px;
                right: 0;
                margin: auto;

                width: 7px;
                height: 14px;
                background-color: transparent;
                border: 2px solid #128f76;
                border-top: none;
                border-left: none;
                transform: rotate(45deg);
            }
            .remember-me label:hover::after{
                opacity: 0.5;
            }
            .remember-me input[type=checkbox]:checked + label:after {
                opacity: 1;
            }

            /* register */
            .register {
                font-size: 13px;
                padding-top: 10px;
                border-top: 1px solid #999;
            }

        </style>
    </head>
    <body>
        <div class="container">
            <div class="login-wrapper">
                <div class="login-screen">
                    <div class="well">
                        <div class="login-form">
                            <img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png" />
                            <p id="profile-name" class="profile-name-card"></p>

                            <form action="" method="post" id="login-form">
                                <div id="errtips" class="hide"></div>
                                {:token()}

                                <div class="input-group">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
                                    <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username" />
                                </div>

                                <div class="input-group">
                                    <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
                                    <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password" />
                                </div>

                                <div class="remember-me">
                                    <input type="checkbox" name="keeplogin" id="keeplogin" value="1" />
                                    <label for="keeplogin"></label>
                                    <span>{:__('Keep login')}</span>
                                </div>

                                <div class="form-group">
                                    <button type="submit" class="btn btn-success btn-lg btn-block">{:__('Sign in')}</button>
                                </div>

                                <div class="register">
                                    <span>还没账号? </span><a href="http://link.hdussta.cn/admin/index/register">现在注册 !</a>
                                </div>
                            </form>
                        </div>
                    </div>
                    <p class="copyright"><a href="http://www.hdussta.cn/">Powered By SSTA</a></p>
                </div>
            </div>
        </div>
        {include file="common/script" /}
    </body>
</html>
